﻿package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class EPropType extends Object
    {
        public var __value:int;
        public static const _EPropTypeTaskBook:int = 0;
        public static const _EPropTypeMoney:int = 1;
        public static const _EPropTypeVip:int = 2;
        public static const _EPropTypePetEgg:int = 3;
        public static const _EPropTypeTrumpet:int = 4;
        public static const _EPropTypePetSkillRand:int = 5;
        public static const _EPropTypeActiveSoul:int = 6;
        public static const _EPropTypeImpeachBook:int = 7;
        public static const _EPropTypeGuildStone:int = 8;
        public static const _EPropTypeGuildSchool:int = 10;
        public static const _EPropTypeActiveTitle:int = 11;
        public static const _EPropTypeRevival:int = 12;
        public static const _EPropTypeConvey:int = 13;
        public static const _EPropTypeSell:int = 14;
        public static const _EPropTypeTreasureMap:int = 15;
        public static const _EPropTypeSpriteSkill:int = 16;
        public static const _EPropTypeEquipPiece:int = 17;
        public static const _EPropTypeMedal:int = 18;
        public static const _EPropTypeCrossTrumpet:int = 19;
        public static const _EPropTypeLottery:int = 20;
        public static const _EPropTypeChangeName:int = 21;
        public static const _EPropTypeSkillPiece:int = 22;
        public static const _EPropTypeGoldEquipPiece:int = 23;
        public static const _EPropTypeExpCopyCard:int = 24;
        public static const _EPropTypeQualityPiece:int = 25;
        public static const _EPropTypeSummonCard:int = 26;
        public static const _EPropTypeGuildNameCard:int = 27;

        public function EPropType(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : EPropType
        {
            return new EPropType(param1);
        }// end function

        public static function __read(param1:SerializeStream) : EPropType
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 28)
            {
                throw new MarshalException();
            }
            return EPropType.convert(_loc_2);
        }// end function

    }
}
